define(()=>{
    return function(cont,serverData,localData){
        let str = "";
        serverData.forEach(val1=>{
            localData.forEach(val2=>{
                if(val1.proId === val2.id){
                    str +=`<div class="box" data-id="${val2.id}">
                    <input type="checkbox" ${val2.flag ? "checked" : ""} class="check">
                    <div class="img">
                        <img src="${val1.img}" alt="">
                    </div> 
                    <ul>
                        <li>${val1.proName}</li>
                        
                    </ul>
                    <p class="p1">${val1.price}</p>
                    <div class="box2">
                        <div class="box3 count" data-num="${val2.num}"></div>
                        
                    </div>
                    <p class="p2">${val1.price * val2.num}</p>
                    <dl>
                        <dd class="del">删除</dd>
                    </dl>
                </div>`
                }
            })
        })
        cont.html(str);
    }
})